<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Bluetooth LE Mesh Library: Mesh Level Client</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Bluetooth LE Mesh Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__wiced__bt__mesh__level__client.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Mesh Level Client<div class="ingroups"><a class="el" href="group__wiced__bt__mesh.html">LE Mesh</a> &raquo; <a class="el" href="group__wiced__bt__mesh__models.html">Mesh Models Library API</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p>The AIROC Mesh Level Client module of the Mesh Models library provides a way for an application to send Level commands (set, delta and move) to the server and optionally receive status information. </p>
<p>The module can be used in an implementation of a simple slider device.</p>
<p>To include Level functionality, the device description shall contain <a class="el" href="group__wiced__bt__mesh__models.html#ga4665d11891c8413d0722fbbf4de91927">WICED_BT_MESH_MODEL_LEVEL_CLIENT</a>. To implement a device which supports multiple sliders, the <a class="el" href="group__wiced__bt__mesh__models.html#ga4665d11891c8413d0722fbbf4de91927">WICED_BT_MESH_MODEL_LEVEL_CLIENT</a> shall be included in multiple elements. Based on this information, the device that performs configuration will be able to specify different destination for different sliders supported by the device.</p>
<p>There are three controlling methods which can be used depending on the application. The device which remembers its state (for example, the current level), can use Level Set command. The device which does not remember the state but knows how much the level is being changed can use Delta Set command. The device which can detect speed of the change can use Move Set command.</p>
<p>In a simplest form, an application needs to initialize using the <a class="el" href="group__wiced__bt__mesh__level__client.html#ga202b05c28e789e5cb83ec9b6b1b5d52d">wiced_bt_mesh_model_level_client_init</a> function and then call <a class="el" href="group__wiced__bt__mesh__level__client.html#ga71166a8215f8e903c54006b71b4990f1">wiced_bt_mesh_model_level_client_set</a> to tell the Mesh Library to send a command. The configuration of the destination address and security credential is done during the provisioning/configuration process and the application does not need to worry about it.</p>
<p>If an application needs more control of how messages are sent out, it can use <a class="el" href="group__wiced__bt__mesh__level__client.html#gac7c99d650afe50d56c08ec544011f04a">wiced_bt_mesh_model_level_client_send_get</a>, <a class="el" href="group__wiced__bt__mesh__level__client.html#gaa68a8153fc9dc8b9218451274b6673c9">wiced_bt_mesh_model_level_client_send_set</a>, <a class="el" href="group__wiced__bt__mesh__level__client.html#ga9eab92d6d9616239997e79d0d7fb7c73">wiced_bt_mesh_model_level_client_send_delta_set</a>, or <a class="el" href="group__wiced__bt__mesh__level__client.html#gae8339c0cec60a17c26326e7bba7f32a2">wiced_bt_mesh_model_level_client_send_move_set</a> functions. These functions require to use the p_event parameter which include among others address of the desgination, application key index, retrnansmission parameters, TTL, and various others. After creating the event, the application can adjust the paramters as needed.</p>
<p>To receive Level Status information, an application during initialization specifies the callback that will be executed when Level status message is received. The status information can be received as a result of sending Level Get and Set commands. In addition to that, the Level server can be configured to send the status information to the device that implements the Level Client module, or to a group of the devices to which the OnOff Client belongs. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gae5ff1146bb2d231b3e10f105d811004b"><td class="memItemLeft" align="right" valign="top">typedef void()&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__level__client.html#gae5ff1146bb2d231b3e10f105d811004b">wiced_bt_mesh_level_client_callback_t</a>(uint16_t event, <a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event, void *p_data)</td></tr>
<tr class="memdesc:gae5ff1146bb2d231b3e10f105d811004b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generic Level Client callback is called by the Mesh Models library on receiving a message from the peer.  <a href="#gae5ff1146bb2d231b3e10f105d811004b">More...</a><br /></td></tr>
<tr class="separator:gae5ff1146bb2d231b3e10f105d811004b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gad4d3d3fa26e25ba2a43c461040bfcd3c"><td class="memItemLeft" align="right" valign="top">wiced_bool_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__level__client.html#gad4d3d3fa26e25ba2a43c461040bfcd3c">wiced_bt_mesh_model_level_client_message_handler</a> (<a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event, uint8_t *p_data, uint16_t data_len)</td></tr>
<tr class="memdesc:gad4d3d3fa26e25ba2a43c461040bfcd3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generic Level Client Message Handler.  <a href="#gad4d3d3fa26e25ba2a43c461040bfcd3c">More...</a><br /></td></tr>
<tr class="separator:gad4d3d3fa26e25ba2a43c461040bfcd3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga202b05c28e789e5cb83ec9b6b1b5d52d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__level__client.html#ga202b05c28e789e5cb83ec9b6b1b5d52d">wiced_bt_mesh_model_level_client_init</a> (uint8_t element_idx, void *p_callback, wiced_bool_t is_provisioned)</td></tr>
<tr class="memdesc:ga202b05c28e789e5cb83ec9b6b1b5d52d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Level Client Module initialization.  <a href="#ga202b05c28e789e5cb83ec9b6b1b5d52d">More...</a><br /></td></tr>
<tr class="separator:ga202b05c28e789e5cb83ec9b6b1b5d52d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga71166a8215f8e903c54006b71b4990f1"><td class="memItemLeft" align="right" valign="top">wiced_result_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__level__client.html#ga71166a8215f8e903c54006b71b4990f1">wiced_bt_mesh_model_level_client_set</a> (uint8_t element_idx, wiced_bool_t is_final, <a class="el" href="structwiced__bt__mesh__level__set__level__t.html">wiced_bt_mesh_level_set_level_t</a> *p_data)</td></tr>
<tr class="memdesc:ga71166a8215f8e903c54006b71b4990f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">The application can call this function to send Set Level client message.  <a href="#ga71166a8215f8e903c54006b71b4990f1">More...</a><br /></td></tr>
<tr class="separator:ga71166a8215f8e903c54006b71b4990f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac7c99d650afe50d56c08ec544011f04a"><td class="memItemLeft" align="right" valign="top">wiced_result_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__level__client.html#gac7c99d650afe50d56c08ec544011f04a">wiced_bt_mesh_model_level_client_send_get</a> (<a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event)</td></tr>
<tr class="memdesc:gac7c99d650afe50d56c08ec544011f04a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The application can call this function to send Generic Level Get message to the server.  <a href="#gac7c99d650afe50d56c08ec544011f04a">More...</a><br /></td></tr>
<tr class="separator:gac7c99d650afe50d56c08ec544011f04a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa68a8153fc9dc8b9218451274b6673c9"><td class="memItemLeft" align="right" valign="top">wiced_result_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__level__client.html#gaa68a8153fc9dc8b9218451274b6673c9">wiced_bt_mesh_model_level_client_send_set</a> (<a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event, <a class="el" href="structwiced__bt__mesh__level__set__level__t.html">wiced_bt_mesh_level_set_level_t</a> *p_data)</td></tr>
<tr class="memdesc:gaa68a8153fc9dc8b9218451274b6673c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">The application can call this function to send Set Level client message to the server.  <a href="#gaa68a8153fc9dc8b9218451274b6673c9">More...</a><br /></td></tr>
<tr class="separator:gaa68a8153fc9dc8b9218451274b6673c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9eab92d6d9616239997e79d0d7fb7c73"><td class="memItemLeft" align="right" valign="top">wiced_result_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__level__client.html#ga9eab92d6d9616239997e79d0d7fb7c73">wiced_bt_mesh_model_level_client_send_delta_set</a> (<a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event, <a class="el" href="structwiced__bt__mesh__level__set__delta__t.html">wiced_bt_mesh_level_set_delta_t</a> *p_data)</td></tr>
<tr class="memdesc:ga9eab92d6d9616239997e79d0d7fb7c73"><td class="mdescLeft">&#160;</td><td class="mdescRight">The application can call this function to send Set Delta Level client message to the server.  <a href="#ga9eab92d6d9616239997e79d0d7fb7c73">More...</a><br /></td></tr>
<tr class="separator:ga9eab92d6d9616239997e79d0d7fb7c73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae8339c0cec60a17c26326e7bba7f32a2"><td class="memItemLeft" align="right" valign="top">wiced_result_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__wiced__bt__mesh__level__client.html#gae8339c0cec60a17c26326e7bba7f32a2">wiced_bt_mesh_model_level_client_send_move_set</a> (<a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event, <a class="el" href="structwiced__bt__mesh__level__set__move__t.html">wiced_bt_mesh_level_set_move_t</a> *p_data)</td></tr>
<tr class="memdesc:gae8339c0cec60a17c26326e7bba7f32a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">The application can call this function to send Set Move client message to the server.  <a href="#gae8339c0cec60a17c26326e7bba7f32a2">More...</a><br /></td></tr>
<tr class="separator:gae8339c0cec60a17c26326e7bba7f32a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="gae5ff1146bb2d231b3e10f105d811004b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae5ff1146bb2d231b3e10f105d811004b">&#9670;&nbsp;</a></span>wiced_bt_mesh_level_client_callback_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void() wiced_bt_mesh_level_client_callback_t(uint16_t event, <a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *p_event, void *p_data)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Generic Level Client callback is called by the Mesh Models library on receiving a message from the peer. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td>The event that the application should process (see <a class="el" href="wiced__bt__mesh__models_8h.html#LEVEL_EVENT">Mesh Level Events</a>) </td></tr>
    <tr><td class="paramname">p_event</td><td>information about the message received. The same pointer should be used in the reply if required. </td></tr>
    <tr><td class="paramname">p_data</td><td>Pointer to the level data</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="gad4d3d3fa26e25ba2a43c461040bfcd3c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad4d3d3fa26e25ba2a43c461040bfcd3c">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_level_client_message_handler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_bool_t wiced_bt_mesh_model_level_client_message_handler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *&#160;</td>
          <td class="paramname"><em>p_event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>data_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Generic Level Client Message Handler. </p>
<p>The Mesh Core library calls this function for each message received. The function returns WICED_TRUE if the message is destined for this specific model and successfully processed, and returns WICED_FALSE otherwise. Generic Level Server device. The function parses the message and if appropriate calls the parent back to perform functionality.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p_event</td><td>Mesh event with information about received message. </td></tr>
    <tr><td class="paramname">p_data</td><td>Pointer to the data portion of the message </td></tr>
    <tr><td class="paramname">data_len</td><td>Length of the data in the message</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_TRUE if the message is for this company ID/Model/Element Index combination, WICED_FALSE otherwise. </dd></dl>

</div>
</div>
<a id="ga202b05c28e789e5cb83ec9b6b1b5d52d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga202b05c28e789e5cb83ec9b6b1b5d52d">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_level_client_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void wiced_bt_mesh_model_level_client_init </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>element_idx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>p_callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wiced_bool_t&#160;</td>
          <td class="paramname"><em>is_provisioned</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Level Client Module initialization. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_idx</td><td>Device element to where model is used </td></tr>
    <tr><td class="paramname">p_callback</td><td>The application callback function that will be executed by the mesh models library when application action is required, or when a reply for the application request has been received. </td></tr>
    <tr><td class="paramname">is_provisioned</td><td>If TRUE, the application is being restarted after being provisioned or after a power loss. If FALSE the model cleans up NVRAM on startup.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None </dd></dl>

</div>
</div>
<a id="ga71166a8215f8e903c54006b71b4990f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga71166a8215f8e903c54006b71b4990f1">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_level_client_set()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_result_t wiced_bt_mesh_model_level_client_set </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>element_idx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">wiced_bool_t&#160;</td>
          <td class="paramname"><em>is_final</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__level__set__level__t.html">wiced_bt_mesh_level_set_level_t</a> *&#160;</td>
          <td class="paramname"><em>p_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The application can call this function to send Set Level client message. </p>
<p>The function parameters doe not contain any information on where and how the message has not be sent because configuration has been done by the Confoguration client.</p>
<p>This function will likely be used in the controlling application where application remembers the target Level state. If application does not remember the target state, the send_delta is more appropriate.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">element_idx</td><td>Device element to where model is used </td></tr>
    <tr><td class="paramname">is_final</td><td>WICED_TRUE, if this is a final set command. WICED_FALSE if application expects more commands to come. </td></tr>
    <tr><td class="paramname">p_data</td><td>Pointer to the data with current level and transition time</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_BT_SUCCESS if message has been queued for transmission. </dd></dl>

</div>
</div>
<a id="gac7c99d650afe50d56c08ec544011f04a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac7c99d650afe50d56c08ec544011f04a">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_level_client_send_get()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_result_t wiced_bt_mesh_model_level_client_send_get </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *&#160;</td>
          <td class="paramname"><em>p_event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The application can call this function to send Generic Level Get message to the server. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p_event</td><td>Mesh event with the information about the message that has been created by the app for unsolicited message.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_BT_SUCCESS if message has been queued for transmission. </dd></dl>

</div>
</div>
<a id="gaa68a8153fc9dc8b9218451274b6673c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa68a8153fc9dc8b9218451274b6673c9">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_level_client_send_set()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_result_t wiced_bt_mesh_model_level_client_send_set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *&#160;</td>
          <td class="paramname"><em>p_event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__level__set__level__t.html">wiced_bt_mesh_level_set_level_t</a> *&#160;</td>
          <td class="paramname"><em>p_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The application can call this function to send Set Level client message to the server. </p>
<p>This function will likely be used in the controlling application where application remembers the target Level state. If application does not remember the target state, the send_delta is more appropriate.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p_event</td><td>Mesh event with the information about the message that has been created by the app for unsolicited message. </td></tr>
    <tr><td class="paramname">p_data</td><td>Pointer to the data to send</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_BT_SUCCESS if message has been queued for transmission. </dd></dl>

</div>
</div>
<a id="ga9eab92d6d9616239997e79d0d7fb7c73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9eab92d6d9616239997e79d0d7fb7c73">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_level_client_send_delta_set()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_result_t wiced_bt_mesh_model_level_client_send_delta_set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *&#160;</td>
          <td class="paramname"><em>p_event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__level__set__delta__t.html">wiced_bt_mesh_level_set_delta_t</a> *&#160;</td>
          <td class="paramname"><em>p_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The application can call this function to send Set Delta Level client message to the server. </p>
<p>This command will likely be used in the controlling application where application does not remember the target Level state. The instant command is just to adjust level.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p_event</td><td>Mesh event with the information about the message that has been created by the app for unsolicited message. </td></tr>
    <tr><td class="paramname">p_data</td><td>Pointer to the data to send</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_BT_SUCCESS if message has been queued for transmission. </dd></dl>

</div>
</div>
<a id="gae8339c0cec60a17c26326e7bba7f32a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae8339c0cec60a17c26326e7bba7f32a2">&#9670;&nbsp;</a></span>wiced_bt_mesh_model_level_client_send_move_set()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wiced_result_t wiced_bt_mesh_model_level_client_send_move_set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__event__t.html">wiced_bt_mesh_event_t</a> *&#160;</td>
          <td class="paramname"><em>p_event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structwiced__bt__mesh__level__set__move__t.html">wiced_bt_mesh_level_set_move_t</a> *&#160;</td>
          <td class="paramname"><em>p_data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The application can call this function to send Set Move client message to the server. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p_event</td><td>Mesh event with the information about the message that has been created by the app for unsolicited message. </td></tr>
    <tr><td class="paramname">p_data</td><td>Pointer to the data to send</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>WICED_BT_SUCCESS if message has been queued for transmission. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>Bluetooth LE Mesh Library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
</body>
</html>
